package com.crm.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("dept")
@AllArgsConstructor
@NoArgsConstructor
public class Dept implements Serializable {

    //祖先部门Id
    private String  ancestors;

    //父部门Id
    private Long  parentId;
    //父部门名称
    private String parentName;

    //部门主键Id
    private Long deptId;
    //部门名称
    private String deptName;

    //部门负责人
    private String leader;
    //部门排序编号
    private String  orderNum;


    //邮箱
    private String  email;
    //电话号码
    private String  phone;
    //删除标志
    private String  delFlag;
    //状态
    private String  status;
    //子类
    private List<String> children;
    //users组
    private List<User> users;

    //更新人
    private String  createBy;
    //创建时间
    private LocalDateTime createTime;
    //更新人
    private String updatedBy;
    //更新时间
    private LocalDateTime updateTime;
}
